<form class="form-horizontal" name="restore_form" ng-submit="restore_snapshot()">
    <div class="modal-header">
        <a class="close" ng-click="close()">×</a>

        <h3>恢复快照</h3>
    </div>
    <div class="modal-body">
        <table class="table table-striped table-bordered table-condensed">
      <thead>
        <tr>
          <th></th>
          <th>名称</th>
          <th>描述</th>
          <th>生成时间</th>
        </tr>
      </thead>
      <tbody>
        <tr ng-repeat="snapshot in snapshots" ng-click="select()">
          <td><input type="radio" name="snap" ng-model="snap_id" value="{{snapshot.id}}"  ng-checked="snap.id==snapshot.id"/></td>
          <td>{{snapshot.name}}</td>
          <td>{{snapshot.description}}</td>
          <td>{{snapshot.created_at|date:'yyyy-MM-dd HH:mm:ss Z'}}</td>
        </tr>
      </tbody>
    </table>
    </div>
    <div class="modal-footer">
        <a data-dismiss="modal" class="btn" ng-click="close()">关闭</a>
        <button type="submit" ng-disabled="!snap" class="btn btn-primary">保存</button>
    </div>
</form>

